remove SYSTEM_PROCESSOR related things
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 26 May 2016 15:47:33 +0000 (15:47 +0000)
committerGert Wollny <gw.fossdev@gmail.com>
Thu, 26 May 2016 15:47:33 +0000 (15:47 +0000)
debian/patches/08_remove_system_processor.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/08_remove_system_processor.patch b/debian/patches/08_remove_system_processor.patch
new file mode 100644 (file)
index 0000000..49c2892
--- /dev/null
@@ -0,0 +1,56 @@
+--- a/CMake/GenerateDCMTKConfigure.cmake
++++ b/CMake/GenerateDCMTKConfigure.cmake
+@@ -64,15 +64,6 @@
+ # Configure file
+-# Windows being windows, it lies about its processor type to 32 bit binaries
+-SET(SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
+-IF(NOT SYSTEM_PROCESSOR)
+-  SET(SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
+-ENDIF(NOT SYSTEM_PROCESSOR)
+-# CMake doesn't provide a configure-style system type string
+-SET(CANONICAL_HOST_TYPE "${SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}")
+-DCMTK_UNSET(SYSTEM_PROCESSOR)
+-
+ # Configure dictionary path and install prefix
+ IF(WIN32 AND NOT CYGWIN AND NOT MINGW)
+   # Set DCMTK_PREFIX needed within some code. Be sure that all / are replaced by \\.
+--- a/CMake/dcmtkPrepare.cmake
++++ b/CMake/dcmtkPrepare.cmake
+@@ -355,11 +355,6 @@
+   OPTION(DCMTK_FORCE_FPIC_ON_UNIX "Add -fPIC compiler flag on unix 64 bit machines to allow linking from dynamic libraries even if DCMTK is built statically" OFF)
+   MARK_AS_ADVANCED(DCMTK_FORCE_FPIC_ON_UNIX)
+-  # Setting for IA64 / x86_64 which needs -fPIC compiler flag required for shared library build on these platforms
+-  IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND DCMTK_FORCE_FPIC_ON_UNIX)
+-    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+-  ENDIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND DCMTK_FORCE_FPIC_ON_UNIX)
+ ENDIF(WIN32)
+--- a/config/include/dcmtk/config/osconfig.h.in
++++ b/config/include/dcmtk/config/osconfig.h.in
+@@ -30,9 +30,6 @@
+ /* Define if __attribute__((aligned)) supports templates */
+ #undef ATTRIBUTE_ALIGNED_SUPPORTS_TEMPLATES
+-/* Define the canonical host system type as a string constant. */
+-#undef CANONICAL_HOST_TYPE
+-
+ /* Define if char is unsigned on the C compiler */
+ #undef C_CHAR_UNSIGNED
+--- a/ofstd/libsrc/ofconapp.cc
++++ b/ofstd/libsrc/ofconapp.cc
+@@ -124,6 +124,9 @@
+ #endif // DCMTK_USE_WCHAR_T
++#define CANONICAL_HOST_TYPE "Debian"
++
++
+ void OFConsoleApplication::printHeader(const OFBool hostInfo,
+                                        const OFBool stdError)
index 163610f51befd9cf6d4509f430540da74d5b7042..c7ae91036618d8a106c41d9e32e59d133ee5a30b 100644 (file)
@@ -5,3 +5,4 @@
 05_performance.patch
 06_soversion_abi.patch
 07_dont_export_all_executables.patch
+08_remove_system_processor.patch